b79aa08cdde0f1e1cc80524e45abec9a8ae32ad6,uportal-war/src/main/java/org/jasig/portal/portlet/container/cache/PortletCacheControlServiceImpl.java,PortletCacheControlServiceImpl,cachePortletRenderOutput,#IPortletWindowId#HttpServletRequest#String#CacheControl#,330
Before Change
Element publicCacheElement = constructCacheElement(publicCacheKey, newData, publicScopePortletRenderOutputCache.getCacheConfiguration(), cacheControl);
this.publicScopePortletRenderOutputCache.put(publicCacheElement);
} else {
newData.setCacheConfigurationMaxTTL(new Long(privateScopePortletRenderOutputCache.getCacheConfiguration().getTimeToLiveSeconds()).intValue());
Serializable privateCacheKey = generatePrivateScopePortletDataCacheKey(httpRequest, portletWindowId, entityId, definitionId, portletWindow.getRenderParameters());
Element privateCacheElement = constructCacheElement(privateCacheKey, newData, privateScopePortletRenderOutputCache.getCacheConfiguration(), cacheControl);
this.privateScopePortletRenderOutputCache.put(privateCacheElement);
After Change
logger.debug("Cached public render data under key {} for {}", publicCacheKey, portletWindow);
} else {
final HttpSession session = httpRequest.getSession();
newData.setCacheConfigurationMaxTTL((int)privateScopePortletRenderOutputCache.getCacheConfiguration().getTimeToLiveSeconds());
final PrivatePortletCacheKey privateCacheKey = new PrivatePortletCacheKey(session.getId(), portletWindowId, entityId, publicCacheKey);
Element privateCacheElement = constructCacheElement(privateCacheKey, newData, privateScopePortletRenderOutputCache.getCacheConfiguration(), cacheControl);
this.privateScopePortletRenderOutputCache.put(privateCacheElement);